# import requests

# 使用requests 没有返回值(添加 UA，Referer)
# res = requests.get('https://tieba.baidu.com/t/f/?class=college')
# print(res)






# # 可以伪造浏览器指纹的库  curl_cffi
# from curl_cffi import requests
# # 模拟chrome浏览器浏览器指纹
# # print(requests.BrowserType.chrome100)
# res = requests.get('https://tieba.baidu.com/t/f/?class=college', impersonate=requests.BrowserType.chrome100)
# import re
# items = re.findall(r'<a class="each_topic_entrance_item" href="(.*?)" data-fid="(.*?)">(.*?)</a>', res.text, re.S)
# for item in items:
#     print(item)





# import requests
# res = requests.get('https://tls.browserleaks.com/json')
# print(res.json())

# {'user_agent': 'python-requests/2.32.5', 'ja4': 't13d1812h1_85036bcba153_b26ce05bbdd6', 'ja4_r': 't13d1812h1_0067,006b,009e,009f,00ff,1301,1302,1303,c023,c024,c027,c028,c02b,c02c,c02f,c030,cca8,cca9_000a,000b,000d,0015,0016,0017,002b,002d,0031,0033_0403,0503,0603,0807,0808,0809,080a,080b,0804,0805,0806,0401,0501,0601,0303,0301,0302,0402,0502,0602', 'ja4_o': 't13d1812h1_a2fb288ce784_cad92ccb4254', 'ja4_ro': 't13d1812h1_1302,1303,1301,c02c,c030,c02b,c02f,cca9,cca8,c024,c028,c023,c027,009f,009e,006b,0067,00ff_0000,000b,000a,0010,0016,0017,0031,000d,002b,002d,0033,0015_0403,0503,0603,0807,0808,0809,080a,080b,0804,0805,0806,0401,0501,0601,0303,0301,0302,0402,0502,0602', 'ja3_hash': 'a48c0d5f95b1ef98f560f324fd275da1', 'ja3_text': '771,4866-4867-4865-49196-49200-49195-49199-52393-52392-49188-49192-49187-49191-159-158-107-103-255,0-11-10-16-22-23-49-13-43-45-51-21,29-23-30-25-24-256-257-258-259-260,0-1-2', 'ja3n_hash': '62fcc66dfa1611e219a93df2d1bb1b24', 'ja3n_text': '771,4866-4867-4865-49196-49200-49195-49199-52393-52392-49188-49192-49187-49191-159-158-107-103-255,0-10-11-13-16-21-22-23-43-45-49-51,29-23-30-25-24-256-257-258-259-260,0-1-2', 'akamai_hash': '', 'akamai_text': ''}

# from curl_cffi import requests
# res = requests.get('https://tls.browserleaks.com/json', impersonate=requests.BrowserType.chrome99)
# print(res.json())

# {'user_agent': '', 'ja4': 't13d2812h2_257f3020b3a2_cbb9361b6bf9', 'ja4_r': 't13d2812h2_002f,0033,0035,0039,003c,003d,0067,006b,009c,009d,009e,009f,1301,1302,1303,c009,c00a,c013,c014,c023,c024,c028,c02b,c02c,c02f,c030,cca8,cca9_000a,000b,000d,0015,0017,0023,002b,002d,0033,ff01_0403,0804,0401,0503,0805,0501,0806,0601', 'ja4_o': 't13d2812h2_4527a0c5d022_8cae22093da9', 'ja4_ro': 't13d2812h2_1301,1302,1303,c02b,c02f,c02c,c030,cca9,cca8,003c,003d,c009,c013,c00a,c014,c023,c024,c028,009c,009d,002f,0035,0033,0039,0067,006b,009e,009f_0000,0017,ff01,000a,000b,0023,0010,000d,0033,002d,002b,0015_0403,0804,0401,0503,0805,0501,0806,0601', 'ja3_hash': 'c3c1610cb4fbc856ed4f0652eddd3288', 'ja3_text': '771,4865-4866-4867-49195-49199-49196-49200-52393-52392-60-61-49161-49171-49162-49172-49187-49188-49192-156-157-47-53-51-57-103-107-158-159,0-23-65281-10-11-35-16-13-51-45-43-21,29-23-24,0', 'ja3n_hash': '69791dff6779cacdf9931007ea3e1249', 'ja3n_text': '771,4865-4866-4867-49195-49199-49196-49200-52393-52392-60-61-49161-49171-49162-49172-49187-49188-49192-156-157-47-53-51-57-103-107-158-159,0-10-11-13-16-21-23-35-43-45-51-65281,29-23-24,0', 'akamai_hash': '52d84b11737d980aef856699f885ca86', 'akamai_text': '1:65536;2:0;4:6291456;6:262144|15663105|0|m,a,s,p'}



# import requests
# res = requests.get('https://www.cloudflare.com/cdn-cgi/trace')
# print(res.text)
#
#
# from curl_cffi import requests
# res = requests.get('https://www.cloudflare.com/cdn-cgi/trace')
# print(res.text)
#
